package com.cold.legendary.bprocess.test.demo.def.sequence;

import com.cold.legendary.bprocess.context.annotation.BSequence;
import org.springframework.stereotype.Service;

import java.util.Random;

/**
 * @author cold
 * @since 2023/4/3
 */
@Service
@BSequence
public class BSequenceService {
    @BSequence
    public String getSequence() {
        Random random = new Random();
        return String.valueOf(random.nextInt());
    }
}
